#pragma once
#include "SocketServer.h"

class HTTPServer:public ISocketServerDelegate
{
public:
	HTTPServer(int _port);
	virtual ~HTTPServer();
private:
	HTTPServer(const HTTPServer& src); //disable copy operator for external scope
	HTTPServer& operator=(const HTTPServer& src);//disable assignment operator for exteral scope
	
public:
	void Start();
	bool OnData(char* request,int requestLength,char** response,int* length);

private:
	SocketServer* server;
	int port;
};